package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PengirimanDetailModel implements Serializable {

	private static final long serialVersionUID = -4822235154297035309L;

	private Long idDetailPengiriman;
	@XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;
	private String bulanKadaluarsa;
	private Integer qty;
	private Integer sisaKirim;
	@XmlElement(name = "gudangModel", type = GudangModel.class)
	private GudangModel gudang;
	private String createdBy;
	private Date createdDate;

	public PengirimanDetailModel() {
	}

	public PengirimanDetailModel(Long idDetailPengiriman, BarangModel barang, GudangModel gudang, String bulanKadaluarsa, Integer qty, Integer sisaKirim,
			String createdBy, Date createdDate) {
		this.idDetailPengiriman = idDetailPengiriman;
		this.barang = barang;
		this.gudang = gudang;
		this.bulanKadaluarsa = bulanKadaluarsa;
		this.qty = qty;
		this.sisaKirim = sisaKirim;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdDetailPengiriman() {
		return idDetailPengiriman;
	}

	public void setIdDetailPengiriman(Long idDetailPengiriman) {
		this.idDetailPengiriman = idDetailPengiriman;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public String getBulanKadaluarsa() {
		return bulanKadaluarsa;
	}

	public void setBulanKadaluarsa(String bulanKadaluarsa) {
		this.bulanKadaluarsa = bulanKadaluarsa;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public void setGudang(GudangModel gudang) {
		this.gudang = gudang;
	}

	public GudangModel getGudang() {
		return gudang;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setSisaKirim(Integer sisaKirim) {
		this.sisaKirim = sisaKirim;
	}

	public Integer getSisaKirim() {
		return sisaKirim;
	}

}
